package com.leo.app;

import javafx.scene.Scene;
import javafx.scene.layout.BorderPane;
import javafx.scene.text.Font;
import javafx.scene.text.Text;
import javafx.stage.Stage;

/**
 * @ClassName LoginSuccess
 * @Description
 * @Author wangss
 * @date 2020.05.18 13:26
 * @Version 1.0
 */
public class LoginSuccess {
    private final Stage stage = new Stage();

    public LoginSuccess(String name, String password) {

        Text text = new Text("账号：" + name + " 密码：" + password);
        text.setFont(Font.font(24d));

        BorderPane borderPane = new BorderPane();
        borderPane.setStyle("-fx-background-color: #08d4ff");
        borderPane.setCenter(text);

        Scene scene = new Scene(borderPane);
        stage.setScene(scene);
        stage.setTitle("登录成功");
        stage.setWidth(500d);
        stage.setHeight(500d);
        stage.show();
    }
}
